package com.xujianlong.day02;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

public class Flink01_Stream_Unbounded_WordCount {
    public static void main(String[] args) {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);
        env.disableOperatorChaining();
        DataStreamSource<String> dataStreamSource = env.socketTextStream("hadoop102", 9999);

        dataStreamSource.startNewChain().disableChaining().slotSharingGroup("group1");

    }
}
